Tip: You can make an EFS filesystem on a disk partition using the Disk Manager in the System Toolchest. For information, see the section "Formatting, Verifying, and Remaking Filesystems on a Fixed Disk" in Chapter 6 of the Personal System Administration Guide.
Caution: When you create a filesystem, all files already on the disk partition or logical volume are destroyed.
# umount partition
Any data that is on the disk partition is destroyed (to convert the data rather than destroy it, use the procedure in the section "Converting a Filesystem on an Option Disk From EFS to XFS" in this chapter instead).
# mkfs -t efs /dev/rdsk/dks0d2s7
The argument to mkfs is the block or character device for the disk partition or logical volume. You can use either the block device or the character device.
In the above example, mkfs uses default values for the filesystem parameters. If you want to use parameters other than the default, you can specify these on the mkfs command line. See the mkfs_efs(1M) reference page for information about using command line parameters and proto files.
# mkdir /rsrch
# mount /dev/dsk/dks0d2s7 /rsrch
For more information about mounting filesystems, see the section "Manually Mounting Filesystems" in Chapter 5.
/dev/dsk/dks0d2s7 /rsrch efs rw,raw=/dev/rdsk/dks0d2s7 0 0
For more information about automatically mounting filesystems, see the section "Mounting Filesystems Automatically With the /etc/fstab File" in Chapter 5.